package com.seata.demo.seatauser.service;

import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MessageSendServiceImpl implements IMessageSendService{

    @Autowired
    private AmqpTemplate template;

    @Override
    public boolean send(String exchange, String content) {
        template.convertAndSend(exchange,content);
        return true;
    }
}
